// Copyright 2011 Google Inc. All Rights Reserved.

package com.google.fbyoutube.client.widget;

import com.google.gwt.user.client.ui.DecoratedPopupPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Image;

/**
 * @author xiaodao@google.com (Xiao Dao Wu)
 *
 */
public class LoadingPopup extends DecoratedPopupPanel {
  
  /**
   * 
   */
  public LoadingPopup() {
    setSize("300px", "120px");
    
    VerticalPanel verticalPanel = new VerticalPanel();
    setWidget(verticalPanel);
    verticalPanel.setSize("300px", "130px");
    
    Image image = new Image("loading.gif");
    verticalPanel.add(image);
    image.setSize("100%", "50%");
    
    this.setAnimationEnabled(true);
    this.center();
    this.setGlassEnabled(true);
    this.setVisible(true);
    
  }
}
